package com.sky.module.system.test.function;

/**
 * @author
 * @date 2023/3/11 21:52
 **/
public class VUtils {

    public static ThrowExceptionFunction isTrue(boolean b) {
        return (errorMessage) -> {
            if (b) {
                throw new RuntimeException(errorMessage);
            }
        };
    }
}
